package com.ruoyi.system.domain;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.common.valid.ValidInsertGroup;
import com.ruoyi.common.valid.ValidUpdateGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @Description TODO
 * @ClassName BsKefuCenter
 * @Author kenn
 * @Version 1.0.0
 * @Date 2023年10月20日 09:38:00
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@TableName("bs_kefu_center")
@ApiModel(value = "客服中心字段")
public class BsKefuCenter extends BaseEntity {

    @TableId
    @ApiModelProperty("主键id")
    @NotNull(message = "主键id不能为空", groups = {ValidUpdateGroup.class})
    private Long id;

    @ApiModelProperty("问题")
    @NotBlank(message = "问题不能为空", groups = {ValidInsertGroup.class, ValidUpdateGroup.class})
    private String question;

    @ApiModelProperty("问题类型（1：猜你想问 2：预约须知）")
    @NotBlank(message = "问题类型不能为空", groups = {ValidInsertGroup.class, ValidUpdateGroup.class})
    private String questionType;

    @ApiModelProperty("跳转攻略关键词 预留字段 可不传")
    private String searchKey;

    @ApiModelProperty("回复")
    @NotBlank(message = "回复不能为空", groups = {ValidInsertGroup.class, ValidUpdateGroup.class})
    private String answer;

    @ApiModelProperty("访问次数 此字段自动生成 新增时不传")
    private Long accessCount;

}
